200 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
Grid1->FormatAnchor[false] = L"<b><u><fgcolor=880000> </fgcolor></u></b>"; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValueFormat(TVariant(var_Items->AddItem(TVariant("Just an <a1>anchor</a> element ..."))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValueFormat(TVariant(var_Items1->AddItem(TVariant("Just another <a2>anchor</a> element ..."))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML); Grid1->Items->AddItem(TVariant("next item")); |
199 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions
Grid1->FormatAnchor[true] = L"<b><u><fgcolor=FF0000> </fgcolor></u></b>"; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValueFormat(TVariant(var_Items->AddItem(TVariant("Just an <a1>anchor</a> element ..."))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValueFormat(TVariant(var_Items1->AddItem(TVariant("Just another <a2>anchor</a> element ..."))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML); |
198 |
Can I change the font for the tooltip
|
197 |
Can I change the font for the tooltip
Grid1->ToolTipDelay = 1; /* Select the Component\Import Component...\Import a Type Library, to import the following Type Library: OLE Automation TypeLib: stdole2.tlb to define the namespace: Stdole_tlb */ //#include "STDOLE_TLB.h" Stdole_tlb::FontPtr var_StdFont = Grid1->ToolTipFont; var_StdFont->Name = L"Tahoma"; var_StdFont->Size = TVariant(long(14)); Grid1->ToolTipWidth = 364; Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column"; |
196 |
Can I change the order of the buttons in the scroll bar
Grid1->ScrollOrderParts[Exgridlib_tlb::ScrollBarEnum::exHScroll] = L"t,l,r"; Grid1->ScrollOrderParts[Exgridlib_tlb::ScrollBarEnum::exVScroll] = L"t,l,r"; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exDisableBoth; |
195 |
The thumb size seems to be very small. Can I make it bigger
|
194 |
How can I display my text on the scroll bar, using a different font
|
193 |
How can I display my text on the scroll bar, using a different font
|
192 |
How can I display my text on the scroll bar
|
191 |
How do I enlarge or change the size of the control's scrollbars
Grid1->ScrollHeight = 18; Grid1->ScrollWidth = 18; Grid1->ScrollButtonWidth = 18; Grid1->ScrollButtonHeight = 18; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exDisableBoth; |
190 |
How do I assign a tooltip to a scrollbar
|
189 |
How do I assign an icon to the button in the scrollbar
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Grid1->ScrollPartVisible[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLeftB1Part] = true; Grid1->ScrollPartCaption[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLeftB1Part] = L"<img>1</img>"; Grid1->ScrollHeight = 18; Grid1->ScrollButtonWidth = 18; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exDisableNoHorizontal; |
188 |
I need to add a button in the scroll bar. Is this possible
Grid1->ScrollPartVisible[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLeftB1Part] = true; Grid1->ScrollPartCaption[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLeftB1Part] = L"1"; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exDisableNoHorizontal; |
187 |
Can I display an additional buttons in the scroll bar
Grid1->ScrollPartVisible[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLeftB1Part] = true; Grid1->ScrollPartVisible[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLeftB2Part] = true; Grid1->ScrollPartVisible[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exRightB6Part] = true; Grid1->ScrollPartVisible[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exRightB5Part] = true; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exDisableNoHorizontal; |
186 |
Can I display the picture aligned to the right, while the text aligned to the left
Grid1->DefaultItemHeight = 48; Grid1->Columns->Add(L"C1"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; TVariant s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("Text"))),TVariant(0))); var_Items->set_CellPicture(TNoParam(),TVariant(s),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exgridlib_tlb::AlignmentEnum::RightAlignment); |
185 |
How can I display a custom size picture to a cell or item
Grid1->DefaultItemHeight = 48; Grid1->Columns->Add(L"C1"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellPicture(TVariant(var_Items->AddItem(TVariant("Text"))),TVariant(0),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); |
184 |
How can I display a multiple pictures to a cell or item
Grid1->DefaultItemHeight = 48; Grid1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif"); Grid1->HTMLPicture[L"pic2"] = TVariant("c:\\exontrol\\images\\auction.gif"); Grid1->Columns->Add(L"C1"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValueFormat(TVariant(var_Items->AddItem(TVariant("<img>pic1</img> Text <img>pic2</img> another text ..."))),TVariant(0),Exgridlib_tlb::ValueFormatEnum::exHTML); |
183 |
How do I change the column's foreground color for numbers between an interval - Range
Exgridlib_tlb::IConditionalFormatPtr var_ConditionalFormat = Grid1->ConditionalFormats->Add(L"%0 >= 2 and %0 <= 10",TNoParam()); var_ConditionalFormat->Bold = true; var_ConditionalFormat->ForeColor = RGB(255,0,0); var_ConditionalFormat->ApplyTo = Exgridlib_tlb::FormatApplyToEnum(0x1); Grid1->Columns->Add(L"N1"); Grid1->Columns->Add(L"N2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2)); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant(3))),TVariant(1),TVariant(3)); Exgridlib_tlb::IItemsPtr var_Items2 = Grid1->Items; var_Items2->set_CellValue(TVariant(var_Items2->AddItem(TVariant(10))),TVariant(1),TVariant(11)); Exgridlib_tlb::IItemsPtr var_Items3 = Grid1->Items; var_Items3->set_CellValue(TVariant(var_Items3->AddItem(TVariant(13))),TVariant(1),TVariant(31)); Grid1->SearchColumnIndex = 1; |
182 |
How do I change the item's foreground color for numbers between an interval - Range
Grid1->ConditionalFormats->Add(L"%0 >= 2 and %0 <= 10",TNoParam())->ForeColor = RGB(255,0,0); Grid1->Columns->Add(L"Numbers"); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(10)); Grid1->Items->AddItem(TVariant(20)); |
181 |
How do I change the item's background color for numbers less than a value
Grid1->ConditionalFormats->Add(L"%0 < 10",TNoParam())->BackColor = RGB(255,0,0); Grid1->Columns->Add(L"Numbers"); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(10)); Grid1->Items->AddItem(TVariant(20)); |
180 |
How do I underline the numbers greater than a value
Grid1->ConditionalFormats->Add(L"%0 >= 10",TNoParam())->Underline = true; Grid1->Columns->Add(L"Numbers"); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(10)); Grid1->Items->AddItem(TVariant(20)); |
179 |
How do I highlight in italic the numbers greater than a value
Grid1->ConditionalFormats->Add(L"%0 >= 10",TNoParam())->StrikeOut = true; Grid1->Columns->Add(L"Numbers"); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(10)); Grid1->Items->AddItem(TVariant(20)); |
178 |
How do I highlight in italic the numbers greater than a value
Grid1->ConditionalFormats->Add(L"%0 >= 10",TNoParam())->Italic = true; Grid1->Columns->Add(L"Numbers"); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(10)); Grid1->Items->AddItem(TVariant(20)); |
177 |
How do I highlight in bold the numbers greater than a value
Grid1->ConditionalFormats->Add(L"%0 >= 10",TNoParam())->Bold = true; Grid1->Columns->Add(L"Numbers"); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(10)); Grid1->Items->AddItem(TVariant(20)); |
176 |
Can I use your EBN files to change the visual appearance for +/- expand - collapse buttons
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exGroupLinesAtRoot; Grid1->HasButtons = Exgridlib_tlb::ExpandButtonEnum::exCustom; Grid1->HasButtonsCustom[false] = 16777216; Grid1->HasButtonsCustom[true] = 33554432; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->set_ExpandItem(h,true); h = var_Items->AddItem(TVariant("Root 2")); var_Items->InsertItem(h,TNoParam(),TVariant("Child")); |
175 |
Can I use your EBN files to change the visual appearance for radio buttons
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->RadioImage[false] = 16777216; Grid1->RadioImage[true] = 33554432; Grid1->Columns->Add(L"Radio")->set_Def(Exgridlib_tlb::DefColumnEnum::exCellHasRadioButton,TVariant(true)); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("Radio 1")); var_Items->set_CellState(TVariant(var_Items->AddItem(TVariant("Radio 2"))),TVariant(0),1); var_Items->AddItem(TVariant("Radio 3")); |
174 |
Can I use your EBN files to change the visual appearance for checkbox cells
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->CheckImage[Exgridlib_tlb::CheckStateEnum::Unchecked] = 16777216; Grid1->CheckImage[Exgridlib_tlb::CheckStateEnum::Checked] = 33554432; Grid1->Columns->Add(L"Check")->set_Def(Exgridlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true)); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("Check 1")); var_Items->set_CellState(TVariant(var_Items->AddItem(TVariant("Check 2"))),TVariant(0),1); |
173 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->VisualAppearance->Add(3,TVariant("c:\\exontrol\\images\\hot.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHSThumb] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHSThumbP] = 0x2000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHSThumbH] = 0x3000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exVSThumb] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exVSThumbP] = 0x2000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exVSThumbH] = 0x3000000; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exVScrollEmptySpace | Exgridlib_tlb::ScrollBarsEnum::exHScrollEmptySpace | Exgridlib_tlb::ScrollBarsEnum::exVScrollOnThumbRelease | Exgridlib_tlb::ScrollBarsEnum::exHScrollOnThumbRelease | Exgridlib_tlb::ScrollBarsEnum::exDisableBoth; Grid1->ScrollBySingleLine = true; Grid1->Columns->Add(L"Def"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(1)); var_Items->AddItem(TVariant(2)); var_Items->AddItem(TVariant(3)); |
172 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->VisualAppearance->Add(3,TVariant("c:\\exontrol\\images\\hot.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHSThumb] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHSThumbP] = 0x2000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHSThumbH] = 0x3000000; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exVScrollEmptySpace | Exgridlib_tlb::ScrollBarsEnum::exHScrollEmptySpace | Exgridlib_tlb::ScrollBarsEnum::exVScrollOnThumbRelease | Exgridlib_tlb::ScrollBarsEnum::exHScrollOnThumbRelease | Exgridlib_tlb::ScrollBarsEnum::exDisableBoth; Grid1->ScrollBySingleLine = true; Grid1->Columns->Add(L"Def"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(1)); var_Items->AddItem(TVariant(2)); var_Items->AddItem(TVariant(3)); |
171 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->VisualAppearance->Add(3,TVariant("c:\\exontrol\\images\\hot.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSBtn] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSBtnP] = 0x2000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSBtnH] = 0x3000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHSBack] = RGB(240,240,240); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exVSBack] = RGB(240,240,240); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exScrollSizeGrip] = RGB(240,240,240); Grid1->Columns->Add(L"S")->Width = 32; Grid1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"E1")->Width = 32; Grid1->Columns->Add(L"E2")->Width = 32; Grid1->Columns->Add(L"E3")->Width = 32; Grid1->Columns->Add(L"E4")->Width = 32; Grid1->ColumnAutoResize = false; Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exDisableBoth; |
170 |
Is there any option to highlight the column from the cursor - point
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exCursorHoverColumn] = 0x1000000; Grid1->Columns->Add(L"S")->Width = 32; Grid1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"E1")->Width = 32; Grid1->Columns->Add(L"E2")->Width = 32; Grid1->Columns->Add(L"E3")->Width = 32; Grid1->Columns->Add(L"E4")->Width = 32; |
169 |
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSelBackColorFilter] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exSelForeColorFilter] = RGB(255,20,20); Grid1->Columns->Add(L"Filter")->DisplayFilterButton = true; |
168 |
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDateHeader] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDateTodayUp] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDateTodayDown] = 0x2000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDateScrollThumb] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDateScrollRange] = RGB(230,230,230); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDateSeparatorBar] = RGB(230,230,230); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exDateSelect] = 0x1000000; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Date"); var_Column->FilterType = Exgridlib_tlb::FilterTypeEnum::exDate; var_Column->DisplayFilterButton = true; var_Column->DisplayFilterDate = true; |
167 |
How do I change the visual aspect of the close button in the filter bar, using EBN
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exFooterFilterBarButton] = 0x1000000; Grid1->Columns->Add(L"Filter")->FilterType = Exgridlib_tlb::FilterTypeEnum::exBlanks; Grid1->ApplyFilter(); |
166 |
How do I change the visual aspect of buttons in the cell, using EBN
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exCellButtonUp] = 0x1000000; Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exCellButtonDown] = 0x2000000; Grid1->SelForeColor = RGB(0,0,0); Grid1->ShowFocusRect = false; Grid1->Columns->Add(L"Column 1")->set_Def(Exgridlib_tlb::DefColumnEnum::exCellHasButton,TVariant(true)); Grid1->Items->AddItem(TVariant("Button 1")); Grid1->Items->AddItem(TVariant("Button 2")); Grid1->Columns->Add(L"Column 2"); |
165 |
How do I change the visual aspect of the drop down filter button, using EBN
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->Background[Exgridlib_tlb::BackgroundPartEnum::exHeaderFilterBarButton] = 0x1000000; Grid1->Columns->Add(L"Filter")->DisplayFilterButton = true; |
164 |
Is there any function to get the control's data in your x-script format / template
Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(Grid1->get_ToTemplate(TNoParam()))); |
163 |
How do I enable resizing the columns at runtime
Grid1->ColumnsAllowSizing = true; Grid1->MarkSearchColumn = false; Grid1->HeaderVisible = false; Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exVLines; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 1"))),TVariant(1),TVariant("Sub Item 1")); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant("Item 2"))),TVariant(1),TVariant("Sub Item 2")); |
162 |
How can I select the second inner column when spliting the cells
Grid1->SelectColumnInner = 1; Grid1->FullRowSelect = Exgridlib_tlb::CellSelectEnum::exColumnSel; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TNoParam(),TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("Split Cell 1.1"))),TVariant(0))),TVariant("Split Cell 2.1")); var_Items->set_CellValue(TNoParam(),TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("Split Cell 1.2"))),TVariant(0))),TVariant("Split Cell 2.2")); var_Items->set_SelectItem(var_Items->FirstVisibleItem,true); |
161 |
How can I sort by multiple columns
Grid1->SingleSort = false; Grid1->Columns->Add(L"C1")->SortOrder = Exgridlib_tlb::SortOrderEnum::SortAscending; Grid1->Columns->Add(L"C2")->SortOrder = Exgridlib_tlb::SortOrderEnum::SortDescending; Grid1->Columns->Add(L"C3")->SortOrder = Exgridlib_tlb::SortOrderEnum::SortAscending; |
160 |
How can I add several columns to control's sort bar
Grid1->SortBarVisible = true; Grid1->SortBarColumnWidth = 48; Grid1->Columns->Add(L"C1")->SortOrder = Exgridlib_tlb::SortOrderEnum::SortAscending; Grid1->Columns->Add(L"C2")->SortOrder = Exgridlib_tlb::SortOrderEnum::SortDescending; |
159 |
How can I change the width of the columns being displayed in the sort bar
Grid1->SortBarVisible = true; Grid1->SortBarColumnWidth = 48; Grid1->Columns->Add(L"C1")->SortOrder = Exgridlib_tlb::SortOrderEnum::SortAscending; Grid1->Columns->Add(L"C2")->SortOrder = Exgridlib_tlb::SortOrderEnum::SortDescending; |
158 |
How can I change the height of the sort bar's
Grid1->SortBarVisible = true; Grid1->SortBarHeight = 48; |
157 |
How can I change the sort bar's foreground color
Grid1->SortBarVisible = true; Grid1->ForeColorSortBar = RGB(255,0,0); |
156 |
How can I change the visual appearance of the control's sort bar, using EBN files
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->SortBarVisible = true; Grid1->BackColorSortBar = 0x1000000; Grid1->BackColorSortBarCaption = 0x2000000; Grid1->Appearance = Exgridlib_tlb::AppearanceEnum::None2; |
155 |
How can I change the sort bar's background color
Grid1->SortBarVisible = true; Grid1->BackColorSortBar = RGB(255,0,0); Grid1->BackColorSortBarCaption = RGB(128,0,0); |
154 |
How can I change the default caption being displayed in the control's sort bar
Grid1->SortBarVisible = true; Grid1->SortBarCaption = L"new caption"; |
153 |
How can I show the locked / fixed items on the bottom side of the control
Grid1->ShowLockedItems = true; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_LockedItemCount(Exgridlib_tlb::VAlignmentEnum::exMiddle,2); var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exMiddle,0)),TVariant(0),TVariant("locked item 1")); var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exMiddle,1)),TVariant(0),TVariant("locked item 2")); var_Items->AddItem(TVariant("un-locked item")); |
152 |
How can I show the locked / fixed items
Grid1->ShowLockedItems = true; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_LockedItemCount(Exgridlib_tlb::VAlignmentEnum::exTop,2); var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exTop,0)),TVariant(0),TVariant("locked item 1")); var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exTop,1)),TVariant(0),TVariant("locked item 2")); var_Items->AddItem(TVariant("un-locked item")); |
151 |
How can I hide the locked / fixed items
Grid1->ShowLockedItems = false; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_LockedItemCount(Exgridlib_tlb::VAlignmentEnum::exTop,1); var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exgridlib_tlb::VAlignmentEnum::exTop,0)),TVariant(0),TVariant("locked item")); var_Items->AddItem(TVariant("un-locked item")); |
150 |
How can I show the control's sort bar
|
149 |
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled
Grid1->PictureLevelHeader = (IPictureDisp*)(Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)")); Grid1->PictureDisplayLevelHeader = Exgridlib_tlb::PictureDisplayEnum::Stretch; Grid1->Columns->Add(L"S")->Width = 32; Grid1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"E1")->Width = 32; Grid1->Columns->Add(L"E2")->Width = 32; Grid1->Columns->Add(L"E3")->Width = 32; Grid1->Columns->Add(L"E4")->Width = 32; |
148 |
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled
Grid1->PictureLevelHeader = (IPictureDisp*)(Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)")); Grid1->PictureDisplayLevelHeader = Exgridlib_tlb::PictureDisplayEnum::MiddleRight; Grid1->Columns->Add(L"S")->Width = 32; Grid1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"E")->Width = 32; |
147 |
How can I display a picture on the control's header, when multiple levels are displayed
Grid1->PictureLevelHeader = (IPictureDisp*)(Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); Grid1->Columns->Add(L"S")->Width = 32; Grid1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1)); |
146 |
How can I change the header's background color, when multiple levels are displayed
Grid1->BackColorLevelHeader = RGB(250,0,0); Grid1->Columns->Add(L"S")->Width = 32; Grid1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1)); Grid1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1)); |
145 |
Can I programmatically scroll the control
Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(3)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->ScrollPos[true] = 1; |
144 |
How do I disable expanding or collapsing an item when user presses the arrow keys
Grid1->ExpandOnKeys = false; Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exLinesAtRoot; Grid1->Columns->Add(L"Column 1"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->set_ExpandItem(h,true); |
143 |
How do I expand automatically the items while user types characters to searching for something ( incremental searching )
Grid1->ExpandOnSearch = true; Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exLinesAtRoot; Grid1->AutoSearch = true; Grid1->Columns->Add(L"Column")->AutoSearch = Exgridlib_tlb::AutoSearchEnum::exContains; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->InsertItem(var_Items->InsertItem(var_Items->AddItem(TVariant("text")),TNoParam(),TVariant("some text")),TNoParam(),TVariant("another text")); var_Items->InsertItem(var_Items->InsertItem(var_Items->AddItem(TVariant("text")),TNoParam(),TVariant("some text")),TNoParam(),TVariant("another text")); |
142 |
Can I programmatically scroll the control
Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); Grid1->Items->AddItem(TVariant(3)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->Scroll(Exgridlib_tlb::ScrollEnum::exScrollDown,TNoParam()); |
141 |
Do you have some function to load data from a safe array
Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); |
140 |
Do you have some function to retrieve all items to a safe array
Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->Items->AddItem(TVariant(1)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->Items->AddItem(TVariant(2)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->Items->AddItem(TVariant(3)); |
139 |
How can still display the selected items when the control loses the focus
Grid1->HideSelection = false; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("Item 3")); var_Items->AddItem(TVariant("Item 1")); var_Items->set_SelectItem(var_Items->AddItem(TVariant("Item 2")),true); |
138 |
How can I hide a column
|
137 |
How can I ensure that a column is visible and fits the control's client area
|
136 |
I've seen that the width of the tooltip is variable. Can I make it larger
Grid1->ToolTipWidth = 328; Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip that should be very very very very very very very long"; |
135 |
How do I disable showing the tooltip for all control
Grid1->ToolTipDelay = 0; Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column"; |
134 |
How do I let the tooltip being displayed longer
Grid1->ToolTipPopDelay = 10000; Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column"; |
133 |
How do I show the tooltip quicker
Grid1->ToolTipDelay = 1; Grid1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column"; |
132 |
How do I change the caption being displayed in the control's filter bar
|
131 |
How do I disable expanding or collapsing an item when user double clicks it
Grid1->ExpandOnDblClick = false; Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exLinesAtRoot; Grid1->Indent = 13; Grid1->Columns->Add(L"Column 1"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->set_ExpandItem(h,true); |
130 |
How do I search case sensitive, using your incremental search feature
Grid1->AutoSearch = true; Grid1->ASCIILower = L""; Exgridlib_tlb::IColumnsPtr var_Columns = Grid1->Columns; var_Columns->Add(L"exStartWith")->AutoSearch = Exgridlib_tlb::AutoSearchEnum::exStartWith; var_Columns->Add(L"exContains")->AutoSearch = Exgridlib_tlb::AutoSearchEnum::exContains; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("text"))),TVariant(1),TVariant("another text")); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant("text"))),TVariant(1),TVariant("another text")); |
129 |
How do I disable the control
|
128 |
How do I enable the incremental search feature within a column
Grid1->AutoSearch = true; Exgridlib_tlb::IColumnsPtr var_Columns = Grid1->Columns; var_Columns->Add(L"exStartWith")->AutoSearch = Exgridlib_tlb::AutoSearchEnum::exStartWith; var_Columns->Add(L"exContains")->AutoSearch = Exgridlib_tlb::AutoSearchEnum::exContains; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("text"))),TVariant(1),TVariant("another text")); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant("text"))),TVariant(1),TVariant("another text")); |
127 |
How do I call your x-script language
|
126 |
How do I call your x-script language
|
125 |
How do I show alternate rows in different background color
Grid1->BackColorAlternate = RGB(240,240,240); Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("Item 1")); var_Items->AddItem(TVariant("Item 2")); var_Items->AddItem(TVariant("Item 3")); var_Items->AddItem(TVariant("Item 4")); var_Items->AddItem(TVariant("Item 5")); |
124 |
How do I enlarge the drop down filter window
Grid1->FilterBarDropDownHeight = "-320"; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Column"); var_Column->DisplayFilterButton = true; var_Column->FilterBarDropDownWidth = "-320"; Grid1->Items->AddItem(TVariant("Item 1")); Grid1->Items->AddItem(TVariant("Item 2")); |
123 |
How do I filter programatically the control
Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Column"); var_Column->DisplayFilterButton = true; var_Column->FilterType = Exgridlib_tlb::FilterTypeEnum::exPattern; var_Column->Filter = L"Item*"; Grid1->Items->AddItem(TVariant("Item 1")); Grid1->Items->AddItem(TVariant("")); Grid1->Items->AddItem(TVariant("Item 2")); Grid1->ApplyFilter(); |
122 |
How do I change the font of the control's filterbar
|
121 |
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->FilterBarBackColor = 0x1000000; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Column"); var_Column->DisplayFilterButton = true; var_Column->FilterType = Exgridlib_tlb::FilterTypeEnum::exBlanks; Grid1->ApplyFilter(); |
120 |
How do I change the background color of the control's filterbar
Grid1->FilterBarBackColor = RGB(240,240,240); Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Column"); var_Column->DisplayFilterButton = true; var_Column->FilterType = Exgridlib_tlb::FilterTypeEnum::exBlanks; Grid1->ApplyFilter(); |
119 |
How do I change the foreground color of the control's filterbar
Grid1->FilterBarForeColor = RGB(255,0,0); Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Column"); var_Column->DisplayFilterButton = true; var_Column->FilterType = Exgridlib_tlb::FilterTypeEnum::exBlanks; Grid1->ApplyFilter(); |
118 |
How do I change the height of the control's filterbar
|
117 |
How do I change the header's foreground color
Grid1->ForeColorHeader = RGB(255,0,0); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Grid1->Items->AddItem(TVariant("Item 1")); |
116 |
I have a picture on the control's background, the question is how do I draw selection as semi-transparent
Grid1->Picture = (IPictureDisp*)(Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); Grid1->SelBackMode = Exgridlib_tlb::BackModeEnum::exTransparent; Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant("Item 1")); Grid1->Items->AddItem(TVariant("Item 2")); |
115 |
It seems that the control uses the TAB key, is there any way to avoid that
|
114 |
I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
Grid1->SelectColumnIndex = 1; Grid1->FullRowSelect = Exgridlib_tlb::CellSelectEnum::exColumnSel; Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 1"))),TVariant(1),TVariant("SubItem 1")); |
113 |
How do I assign a database to your control, using ADO, ADOR or ADODB objects
Grid1->ColumnAutoResize = false; Grid1->ContinueColumnScroll = false; /* Select the Component\Import Component...\Import a Type Library, to import the following Type Library: Microsoft ActiveX Data Objects 6.1 Library TypeLib: msado15.dll to define the namespace: Adodb_tlb */ //#include "ADODB_TLB.h" Adodb_tlb::_RecordsetPtr rs = Variant::CreateObject(L"ADOR.Recordset"); rs->Open(TVariant("Orders"),TVariant("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGrid\\Sample\\Access\\misc.accdb"),Adodb_tlb::CursorTypeEnum::adOpenStatic,Adodb_tlb::LockTypeEnum::adLockOptimistic,0); Grid1->DataSource = (IDispatch*)rs; |
112 |
How do I change the visual appearance effect for the selected item, using EBN
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->SelBackColor = 0x1000000; Grid1->SelForeColor = RGB(0,0,0); Grid1->ShowFocusRect = false; Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->Items->AddItem(TVariant(1)); |
111 |
How do I change the colors for the selected item
Grid1->SelBackColor = RGB(0,0,0); Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->Items->AddItem(TVariant(1)); |
110 |
How do I get ride of the rectangle arround focused item
Grid1->ShowFocusRect = false; Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->Items->AddItem(TVariant(1)); |
109 |
How can I change the control's font
|
108 |
I can't scroll to the end of the data. What can I do
Grid1->ScrollBySingleLine = true; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_ItemHeight(var_Items->AddItem(TVariant(0)),13); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_ItemHeight(var_Items1->AddItem(TVariant(1)),26); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Exgridlib_tlb::IItemsPtr var_Items2 = Grid1->Items; var_Items2->set_ItemHeight(var_Items2->AddItem(TVariant(2)),36); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Exgridlib_tlb::IItemsPtr var_Items3 = Grid1->Items; var_Items3->set_ItemHeight(var_Items3->AddItem(TVariant(3)),48); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); |
107 |
How do I specify the column where the tree lines / hierarchy are shown
Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exGroupLinesAtRoot; Grid1->TreeColumnIndex = 1; Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root 1.1")); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Root 1.2")); var_Items->set_CellValue(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 1.1"))),TVariant(1),TVariant("Child 1.2")); var_Items->set_CellValue(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2.1"))),TVariant(1),TVariant("Child 2.2")); var_Items->set_ExpandItem(h,true); h = var_Items->AddItem(TVariant("Root 2.1")); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Root 2.2")); var_Items->set_CellValue(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 1.1"))),TVariant(1),TVariant("Child 1.2")); |
106 |
How do I specify the indentation of the child items relative to their parents
Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exGroupLinesAtRoot; Grid1->Indent = 11; Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->set_ExpandItem(h,true); h = var_Items->AddItem(TVariant("Root 2")); var_Items->InsertItem(h,TNoParam(),TVariant("Child")); |
105 |
Is there any option to select an item using the right button of the mouse (rclick)
Grid1->RClickSelect = true; Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant("Item 1")); Grid1->Items->AddItem(TVariant("Item 2")); |
104 |
I have FullRowSelect property on False, how do I select a column
Grid1->SelectColumnIndex = 1; Grid1->FullRowSelect = Exgridlib_tlb::CellSelectEnum::exColumnSel; |
103 |
How can I scroll columns one by one, not pixel by pixel
|
102 |
How can I enable multiple items selection
Grid1->SingleSel = false; Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant(0)); Grid1->Items->AddItem(TVariant(1)); Grid1->Items->AddItem(TVariant(2)); |
101 |
How can I programmatically change the column where incremental searching is performed
Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 1"))),TVariant(1),TVariant("SubItem 1")); Grid1->SearchColumnIndex = 1; |